import service from '@/utils/request'

/*
 * @Author: zhouhx
 * @Description: 详情
 * @Date: 2022/10/14 15:17
 */
export const templateVersionApi = (id: number) => {
	return service.get('/gen/templateVersion/' + id)
}

/*
 * @Author: zhouhx
 * @Description: 修改/新增
 * @Date: 2022/10/14 15:17
 */
export const templateVersionSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/gen/templateVersion/update', dataForm)
	} else {
		return service.post('/gen/templateVersion/save', dataForm)
	}
}

/*
 * @Author: zhouhx
 * @Description: 分页
 * @Date: 2022/10/14 15:17
 */
export const templateVersionPageApi = () => {
	return service.get('/gen/templateVersion/page')
}

/*
 * @Author: zhouhx
 * @Description: 删除
 * @Date: 2022/10/27 13:19
 */
export const deleteTemplateVersionPageApi = (ids:any) => {
	return service.delete('/gen/templateVersion/delete', {data:ids})
}

/*
 * @Author: zhouhx
 * @Description: 列表查询
 * @Date: 2022/10/17 9:15
 */
export const templateVersionListApi = (param) => {
	return service.get('/gen/templateVersion/list',{params:param})
}

